<?
    $recent = $bibtex->search('all:', 8, false);
    $smarty->assign('recent_search_query', $recent[2]);
    $recent = $recent[0];
    foreach($recent as $k=>$v)
    {
        $recent[$k]['author'] = explode(' and', $v['author']);
        $recent[$k]['user'] = $user->getFullname($v['user']);
    }
    $smarty->assign('recent', $recent);


    $r = $bibtex->search('Need To Read');
    $smarty->assign('toread_search_query', $r[2]);
    $toread = $r[0];    
    foreach($toread as $k=>$v)
    {
        $toread[$k]['author'] = explode(' and', $v['author']);
        $toread[$k]['user'] = $user->getFullname($v['user']);
    }
    $smarty->assign('toread', $toread);

?>
